﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MsjZaBpzydwxkzAdd.aspx.cs"
    Inherits="XWG.JWBST.JWBSTManagementApp.Form.PublicSecurity.MsjZaBpzydwxkzAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新建</title>
    <link href="../Styles/AddOrEditPage.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../Styles/validationEngine.jquery.css" type="text/css"
        media="screen" charset="utf-8" />
    <script src="../Scripts/jQuery-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine-cn.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.validationEngine.js"></script>
    <script type="text/javascript" src="../Scripts/CommonADEQ3.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //以下行业类别绑定
            itemParam = { "textField": "name", "valueField": "value" };
            ajaxParam = { "url": "../AjaxServer/Form/MsjZaYlcsbaHandler.ashx", "data": { "action": "GetBaTypeId"} }
            initDropDownList("selHylb", ajaxParam, itemParam);
            //以下经营性质绑定
            itemParam = { "textField": "name", "valueField": "value" };
            ajaxParam = { "url": "../AjaxServer/Form/MsjZaYlcsbaHandler.ashx", "data": { "action": "GetJyxz"} }
            initDropDownList("selJyxz", ajaxParam, itemParam);
            //单位选择绑定
            $("input[name='texSjzgbm']").on("click", function () {
                var result = window.showModalDialog("../OrgSelector.aspx?controlid=texOrgnaCode", "window", "dialogHeight:600px;dialogWidth:560px;location:yes;menubar:no;toolbar:no;status:no;center:yes;help:no;status:no;scroll:no");
                if (typeof (result) == 'undefined')
                    result = window.ReturnValue;
                var str = result.split('|');
                $("input[name='texSjzgbm']").val(str[1]);
                $("input[name='hidSjzgbm']").val(str[0]);
            });
            //截获提交事件，取消禁用的select
            jQuery("#MsjZaYlcsbaForm").removeAttr('onsubmit').submit(function (e) {
                $("select[disabled='disabled']").removeAttr("disabled"); //获取所有被禁用的select 
            });
            InitAddPage("MsjZaYlcsbaForm", "../AjaxServer/Form/MsjZaYlcsbaHandler.ashx");
            $("#selHylb").val("BPZYDWXKZ");
            $("#selHylb").attr("disabled", "disabled");
        });
    </script>
</head>
<body>
    <div class="container">
        <form id="MsjZaYlcsbaForm" action="" method="get">
        <table class="mainTable">
            <tr>
                <td class="mainTable_TitleTd" colspan="4">
                    新建
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texHylb">
                        行业类别</label>
                </td>
                <td class="mainTable_RightTd">
                    <select id="selHylb" name="selHylb">
                    </select>
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texDwbh">
                        单位编号</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texDwbh" name="texDwbh" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texDwmc">
                        单位(个人)名称</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texDwmc" name="texDwmc" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texDwdz">
                        单位地址</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texDwdz" name="texDwdz" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texSjzgbm">
                        上级主管部门</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texSjzgbm" name="texSjzgbm" class="validate[required]" type="text" size="30"
                        value="" />
                    <input id="hidSjzgbm" name="hidSjzgbm" type="hidden" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texJyxz">
                        经营性质</label>
                </td>
                <td class="mainTable_RightTd">
                    <select id="selJyxz" name="selJyxz">
                    </select>
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texFrxm">
                        法人（负责人）</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texFrxm" name="texFrxm" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texSfzh">
                        公民身份证号</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texSfzh" name="texSfzh" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texZafzr">
                        治安负责人</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texZafzr" name="texZafzr" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texLxdh">
                        联系电话</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texLxdh" name="texLxdh" class="validate[required]" type="text" size="30"
                        value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texYyzzzchm">
                        经营范围-主营</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texYyzzzchm" name="texYyzzzchm" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texGajgdjsj">
                        经营范围-兼营</label>
                </td>
                <td class="mainTable_RightTd">
                    <input id="texGajgdjsj" name="texGajgdjsj" class="validate[required]" type="text"
                        size="30" value="" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_LeftTd">
                    <label for="texGajgjsr">
                        是否具备许可条件</label>
                </td>
                <td class="mainTable_RightTd">
                    是
                    <input id="Radio1" name="radGajgjsr" type="radio" value="1" />
                    否
                    <input id="Radio2" name="radGajgjsr" type="radio" value="0" />
                </td>
                <td class="mainTable_LeftTd">
                    <label for="texQyjbr">
                        材料是否齐全</label>
                </td>
                <td class="mainTable_RightTd">
                    是
                    <input id="Radio3" name="radQyjbr" type="radio" value="1" />
                    否
                    <input id="Radio4" name="radQyjbr" type="radio" value="0" />
                </td>
            </tr>
            <tr>
                <td class="mainTable_ButtonTd" colspan="4">
                    <input class="button" type="submit" value="提交" />
                    <input class="button" type="button" value="取消" onclick="window.parent.tb_remove();" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
